home *** CD-ROM | disk | FTP | other *** search
- on defbuggy
- global ogre, caranim, mouthindex, temp, phrases, variations
- set phrases to [:]
- set phrases to [:]
- set variations to [0.3921, 0.78039999999999998, 1.16110000000000002, 1.53069999999999995, 1.88559999999999994, 2.22230000000000016, 2.53759999999999986, 2.8283999999999998, 3.09200000000000008, 3.32589999999999986, 3.52769999999999984, 3.69550000000000001, 3.82779999999999987, 3.92309999999999981, 3.98070000000000013, 4.0, 3.98070000000000013, 3.92309999999999981, 3.82779999999999987, 3.69550000000000001, 3.52769999999999984, 3.32589999999999986, 3.09200000000000008, 2.8283999999999998, 2.53759999999999986, 2.22230000000000016, 1.88559999999999994, 1.53069999999999995, 1.16110000000000002, 0.78039999999999998, 0.3921, 0.0, -0.3921, -0.78039999999999998, -1.16110000000000002, -1.53069999999999995, -1.88559999999999994, -2.22230000000000016, -2.53759999999999986, -2.8283999999999998, -3.09200000000000008, -3.32589999999999986, -3.52769999999999984, -3.69550000000000001, -3.82779999999999987, -3.92309999999999981, -3.98070000000000013, -4.0, -3.98070000000000013, -3.92309999999999981, -3.82779999999999987, -3.69550000000000001, -3.52769999999999984, -3.32589999999999986, -3.09200000000000008, -2.8283999999999998, -2.53759999999999986, -2.22230000000000016, -1.88559999999999994, -1.53069999999999995, -1.16110000000000002, -0.78039999999999998, -0.3921, -0.0, 0.3921, 0.78039999999999998, 1.16110000000000002, 1.53069999999999995, 1.88559999999999994, 2.22230000000000016, 2.53759999999999986, 2.8283999999999998, 3.09200000000000008, 3.32589999999999986, 3.52769999999999984, 3.69550000000000001, 3.82779999999999987, 3.92309999999999981, 3.98070000000000013, 4.0, 3.98070000000000013, 3.92309999999999981, 3.82779999999999987, 3.69550000000000001, 3.52769999999999984, 3.32589999999999986, 3.09200000000000008, 2.8283999999999998, 2.53759999999999986, 2.22230000000000016, 1.88559999999999994, 1.53069999999999995, 1.16110000000000002, 0.78039999999999998, 0.3921, 0.0, -0.3921, -0.78039999999999998, -1.16110000000000002, -1.53069999999999995, -1.88559999999999994, -2.22230000000000016, -2.53759999999999986, -2.8283999999999998, -3.09200000000000008, -3.32589999999999986, -3.52769999999999984, -3.69550000000000001, -3.82779999999999987, -3.92309999999999981, -3.98070000000000013, -4.0, -3.98070000000000013, -3.92309999999999981, -3.82779999999999987, -3.69550000000000001, -3.52769999999999984, -3.32589999999999986, -3.09200000000000008, -2.8283999999999998, -2.53759999999999986, -2.22230000000000016, -1.88559999999999994, -1.53069999999999995, -1.16110000000000002, -0.78039999999999998, -0.3921, -0.0]
- set temp to []
- set yyy to 1
- repeat with xxx = 1 to 10
- set dingus to the number of cast ("z" & xxx)
- add(temp, dingus)
- end repeat
- set caranim to temp
- set ogre to birth(script "buggyhead", 35, caranim)
- end
-
- on talkyou soundname
- global ogre, phrases
- set the bugsound of ogre to soundname
- sayit(ogre)
- end
-
- on mydelay wholong
- set ptime to the timer
- repeat while (the timer - ptime) < wholong
- updateStage()
- if the mouseDown then
- exit
- end if
- end repeat
- end
-
- on sactivate snew, stuff
- puppetSprite(snew, 1)
- if listp(stuff) then
- set the castNum of sprite snew to getAt(stuff, 1)
- set the locH of sprite snew to getAt(stuff, 2)
- set the locV of sprite snew to getAt(stuff, 3)
- set the ink of sprite snew to getAt(stuff, 4)
- set the type of sprite snew to getAt(stuff, 5)
- set the stretch of sprite snew to getAt(stuff, 6)
- set the foreColor of sprite snew to getAt(stuff, 7)
- set the backColor of sprite snew to getAt(stuff, 8)
- end if
- end
-
- on sinfo sold
- set stemp to []
- add(stemp, the castNum of sprite sold)
- add(stemp, the locH of sprite sold)
- add(stemp, the locV of sprite sold)
- add(stemp, the ink of sprite sold)
- add(stemp, the type of sprite sold)
- add(stemp, the stretch of sprite sold)
- add(stemp, the foreColor of sprite sold)
- add(stemp, the backColor of sprite sold)
- return stemp
- put stemp
- end
-
- on makesiner
- global variations
- set variations to []
- repeat with ddd = 1 to 64
- add(variations, 4 * sin(ddd * PI / 32))
- end repeat
- end
-